import {
  NetAccessTypeMap,
  PublishState,
  PublishStateMap,
  NetAccessType,
} from '@/views/device/create-product/consts'

export const constUtils = {
  filters: {
    PublishStateMap(value) {
      return PublishStateMap[value] || ''
    },
    NetAccessTypeMap(value) {
      return NetAccessTypeMap[value] || ''
    },
  },
  computed: {
    PublishState() {
      return PublishState
    },
    NetAccessType() {
      return NetAccessType
    },
    NetAccessTypeMap() {
      return NetAccessTypeMap
    },
    PublishStateMap() {
      return PublishStateMap
    },
  },
}
